package com.tjjingpan.learnkotlin.base

class MyStringCollection {
    infix fun add(s:String){

    }
    fun build(){
        this add "abc" //正确
        add("abc")//正确
        //add "abc"   //错误:必须指定接收者
    }
}

fun main(){
    val myStringCollection = MyStringCollection()
    myStringCollection.build()
}